<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Dessert House - 会员</title>
<link href="/ChristineCake/css/Management_NoList_Button.css"
	rel="stylesheet" type="text/css" />
</head>

<body>
	<jsp:useBean id="order" type="model.Order" scope="request" />

	<div id="header">
		<div id="logo">
			<img src="/ChristineCake/image/logo.png" alt="logo" width="100%"
				height="100%" />
		</div>
		<div id="logout" align="right">
			<a
				href="
			<%out.println("/ChristineCake/OrderListServlet?name="
					+ request.getParameter("name"));%>
			">返回</a>
		</div>
	</div>

	<div id="menu">
		<ul>
			<li><a
				href="
			<%
			out.println("/ChristineCake/OrderGoodsServlet?name=" + request.getParameter("name") + "&date=day1");
			%>
			">预定</a></li>
			<li><a
				href="
			<%out.println("/ChristineCake/OrderListServlet?name="
					+ request.getParameter("name"));%>
			">购物车</a></li>
			<li><a
				href="
			<%out.println("/ChristineCake/ConsumptionRecordServlet?name="
					+ request.getParameter("name"));%>
			">消费记录</a></li>
			<li><a
				href="
			<%out.println("/ChristineCake/MemberMessageManagementServlet?name="
					+ request.getParameter("name"));%>
			">账户管理</a></li>
		</ul>
	</div>

	<div id="panel">

		<div id="content">
			<br /> <br />
			<table>
				<tr>
					<th>商品编号</th>
					<th>商品名称</th>
					<th>购买数量</th>
					<th>金额</th>
				</tr>
				<tr>
					<td><jsp:getProperty name="order" property="goodsId" /></td>
					<td><jsp:getProperty name="order" property="goodsName" /></td>
					<td><jsp:getProperty name="order" property="quantity" /></td>
					<td><jsp:getProperty name="order" property="price" /></td>
				</tr>
			</table>

			<br />

			<p>请输入购买数量：</p>

			<br />

			<form method="POST"
				action="
			<%out.println("/ChristineCake/ModifyOrderServlet?name="
					+ request.getParameter("name") + "&id=" + order.getId());%>
			">
				<input type="text" name="num" size="20%"> <br /> <br /> 
				<input type="submit" name="modify" value="提交修改" size="20%" class="button">
			</form>
		</div>
	</div>

	<hr />

	<div id="footer">
		<p>©南京大学软件学院 李冰洁</p>
	</div>

</body>

</html>